﻿namespace NBpn.Network
{
    public class Connection
    {
        private INeuron from;
        private INeuron to;
        private double weight;

        public Connection()
        {
        }

        public Connection(INeuron from, INeuron to, double weight)
            : this()
        {
            From = from;
            To = to;
            Weight = weight;
        }

        public Connection(double weigth)
            : this(null, null, weigth)
        {
        }

        public INeuron From
        {
            get { return from; }
            set { from = value; }
        }

        public INeuron To
        {
            get { return to; }
            set { to = value; }
        }

        public double Weight
        {
            get { return weight; }
            set { weight = value; }
        }
    }
}